package com.hgkj.cloud.base.service.impl;

import com.hgkj.cloud.base.common.PageInfo;
import com.hgkj.cloud.base.dao.PsyPlayTourMapper;
import com.hgkj.cloud.base.service.PsyPlayTourService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class PsyPlayTourServiceImpl implements PsyPlayTourService {

    @Autowired
    private PsyPlayTourMapper psyPlayTourMapper;

    @Override
    public List<Map<String, Object>> findPsyPlaytourList(PageInfo pi, Map<String, Object> map) {
        if(pi != null){
            map.put("currentCount", pi.getCurrentCount());
            map.put("pageSize", pi.getPageSize());
        }
        return psyPlayTourMapper.findPsyPlaytourList(map);
    }

    @Override
    public long findPsyPlaytourListCount(Map<String, Object> map) {
        return psyPlayTourMapper.findPsyPlaytourListCount(map);
    }

    @Override
    public Map<String, Object> findPsyPlaytourBymap(Map<String, Object> map) {
        return psyPlayTourMapper.findPsyPlaytourBymap(map);
    }
}
